import Vue from 'vue'
import Router from 'vue-router'
// import test from '@/components/test'

Vue.use(Router)

const indexList = () => import('@/components/indexList/indexList.vue');
const detailsPage = () => import('@/components/eventAndWarnDetail/eventAndWarnDetail.vue');

export default new Router({
  routes: [
    {
      path: '/',
      name: 'indexList',
      component: indexList,
      children: [
        {
          path: '/details',
          name: "details",
          component: detailsPage,
        },
      ]
    }
  ]
})
